<a href="<?php echo Yii::app()->createUrl('/search/gadget',array('device'=>'iphone'));?>"  class="button2">view offer</a>
<div class="slogan" style="cursor:text">
	<div>
		<span style="color:#DC7813;font-size:24px;line-height:46px;font-weight:bold">What are you selling today?</span>
		<br/> 
			<fieldset style="border:none">
				<p class="ui-widget" >
					
						 <input type="text" id="device-custom" name="device" maxlength="400" 
							style="width:340px;
									height:30px;
									border:solid 2px orange;
									font-size:14px;
									border-style: solid;
									border-radius:21px; 
									-moz-border-radius: 21px; 
									-webkit-border-radius: 21px;
									padding-left: 10px;
									"
									 />   							
				</p>
			</fieldset>

		<?php
						
					Yii::import('ext.jqautocomplete.jqAutocomplete');
						
					$json_options = array(
						'script'=> $this->createUrl(
							'/search/gadget/suggest?'),
						'varName'=>'location',
						'shownoresults'=>true,
						'valueSep' => null,
						'maxresults'=>16,
						'callback' =>'js:function(obj){ 
							window.location.href=\' \'+obj.alias+\' \';
						}'
					);

					jqAutocomplete::addAutocomplete('#device-custom',$json_options);
					
				?>
	</div>
</div>
<style>
#ac_device-custom{z-index:1000}
</style>
